/* eslint-disable no-undef */
import http from '../utils/request'

//请求首页数据
export const getData=()=>{

  //返回一个promis对象
  return http.get('/home/getData')
}


export const getUser=(param)=>{
    // 返回用户列表
    return http.get('user/getUserList',param)
}

export const addUser=(data)=>{
  return http.post('user/createUser',data)

}
export const editUser=(data)=>{
  return http.post('user/updateUser',data)

}
export const deleteUser=(data)=>{
  return http.post('user/deleteUser',data)

}

export const getMenu=(data)=>{
  return http.post('permission/getMenu',data)
}